package handler.channel;

import client.*;
import client.skills.SkillFactory;
import client.stats.BuffStats;
import java.util.Collections;
import packet.creators.MainPacketCreator;
import packet.transfer.read.ReadingDbg;
import tools.Pair;


public final class CancelMechHandler
{

    public final void handlePacket(ReadingDbg slea, DbgAccount c)
    {
        DbgPlayer chr = c.getPlayer();
        int skillid = slea.readInt();
        int skilllevel = slea.readByte();
        int effect = slea.readByte();
        if(skillid == 35001002)
        {
            chr.cancelEffect(SkillFactory.getSkill(35001002).getEffect(skilllevel), false, -1);
            c.getSession().write(MainPacketCreator.showOwnBuffEffect(35001002, effect));
        }
    }
}
